package com.fs.activiti5.extend;

import org.activiti.bpmn.model.ExclusiveGateway;
import org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior;
import org.activiti.engine.impl.bpmn.parser.factory.DefaultActivityBehaviorFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 *
 */
@Component
public class ActivityBehaviorFactoryExt extends DefaultActivityBehaviorFactory {  
    
    @Autowired private ExclusiveGatewayActivityBehaviorExt exclusiveGatewayActivityBehaviorExt;  
      
    //重写父类中的分支条件行为执行类  
    public ExclusiveGatewayActivityBehavior createExclusiveGatewayActivityBehavior(ExclusiveGateway exclusiveGateway) {  
        return exclusiveGatewayActivityBehaviorExt;  
    }  
}  
